import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
enum Api {
  SysDataScopeApi = '/sysDataRule',
}
/**
 * 查询数据权限集不分页
 * @author frank
 * @date 2022-09-15 16:29:05
 */
export const list = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: Api.SysDataScopeApi + '/list', params });
/**
 * 添加数据权限集
 * @author frank
 * @date 2022-09-15 16:29:05
 */
export const add = (params?: any) => defHttp.post({ url: Api.SysDataScopeApi + '/add', params });
/**
 * 修改数据权限集
 * @author frank
 * @date 2022-09-15 16:29:05
 */
export const edit = (params?: any) => defHttp.post({ url: Api.SysDataScopeApi + '/edit', params });

/**
 * 删除数据权限集
 * @author frank
 * @date 2022-09-15 16:29:05
 */
export const del = (ids: string[]) =>
  defHttp.post({ url: Api.SysDataScopeApi + '/delete', params: ids });
